<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->get('api/city', 'ApiController@city');
    $router->get('api/appoint_time', 'ApiController@appoint_time');
    $router->resource('user', 'UserController');
    $router->resource('sign', 'SignController');
    $router->resource('sign-break', 'SignBreakController');

    $router->resource('appoint', 'AppointController');
    $router->resource('appoint-num', 'AppointNumController');
    $router->resource('hospital-appoint', 'HospitalAppointController');

    $router->resource('appoint-view', 'AppointViewController');
    $router->resource('appoint-view-rule-title', 'AppointViewRuleTitleController');
    $router->resource('appoint-view-rule', 'AppointViewRuleController');

    $router->resource('appoint-view-data', 'AppointViewDatumController');


    $router->resource('dictionary', 'DictionaryController');
    $router->resource('hospital', 'HospitalController');
    $router->resource('hospital-team', 'HospitalTeamController');
    $router->resource('hospital-users', 'HospitalUserController');
    $router->resource('family', 'FamilyController');

    $router->resource('family-type', 'FamilyTypeController');
    $router->resource('article', 'ArticleController');
    $router->resource('appoint-type', 'HospitalAppointTypeController');
    $router->resource('feedback', 'FeedbackController');

    $router->resource('notice-type', 'SystemNoticeTypeController');
    $router->resource('hospital-appoint-holiday', 'HospitalAppointHolidayController');
    $router->resource('vaccine-type', 'VaccineTypeController');
    $router->resource('vaccine', 'VaccineController');
    $router->resource('scan-record', 'ScanRecordController');
    $router->resource('temp', 'TempController');
    $router->resource('temp-push', 'TempPushRecordController');
    $router->resource('failed-job', 'FailedJobController');
    $router->resource('growth-standard', 'GrowthStandardController');
    $router->resource('sub-message', 'SubMessageController');
    $router->resource('knowledge-article', 'KnowledgeArticleController');
    $router->resource('knowledge-article-subject', 'KnowledgeArticleSubjectController');
    $router->resource('knowledge-article-featured', 'KnowledgeArticleFeaturedController');
    $router->resource('knowledge-guide', 'KnowledgeGuideController');
    $router->resource('knowledge-guide-tag', 'KnowledgeGuideTagController');

    $router->get('log',"\Dcat\Admin\OperationLog\Http\Controllers\LogController@index");
});
